package com.skyline.wo.service;

import java.util.List;

import com.skyline.common.bean.Page;
import com.skyline.wo.model.ShortMessage;

public interface ShortMessageService {

	/**
	 * 新建短消息，主要用于Web用户，而且没有指定短消息所发出的地点
	 * 
	 * @param ownerId
	 *            用户ID
	 * @param ownerNickname
	 *            用户的昵称
	 * @param ownerPortrait
	 *            用户的头像
	 * @param text
	 *            内容
	 * @return 短消息的ID，因为是ObjectID类型，所以在这里，我把它转为String类型
	 */
	public String addShortMessage(Long ownerId, String ownerNickname, String ownerPortrait, String text);

	public String forwardShortMessage(String id, Long ownerId, String ownerNickname, String ownerPortrait, String comment);

	public ShortMessage getShortMessageById(String id);

	public List<ShortMessage> getShortMessageByOwnerId(Long ownerId, Page page);

	public void deleteShortMessage(String id, Long actionerId);

}
